import request from '@/utils/request'

// 查询培训课程管理列表
export function listCurriculum(query) {
  return request({
    url: '/training/curriculum/list',
    method: 'get',
    params: query
  })
}

// 查询培训课程管理详细
export function getCurriculum(id) {
  return request({
    url: '/training/curriculum/' + id,
    method: 'get'
  })
}

// 新增培训课程管理
export function addCurriculum(data) {
  return request({
    url: '/training/curriculum',
    method: 'post',
    data: data
  })
}

// 修改培训课程管理
export function updateCurriculum(data) {
  return request({
    url: '/training/curriculum',
    method: 'put',
    data: data
  })
}

// 删除培训课程管理
export function delCurriculum(id) {
  return request({
    url: '/training/curriculum/' + id,
    method: 'delete'
  })
}

// 查询章节列表
export function listZhang(query) {
  return request({
    url: '/training/chapter/list',
    method: 'get',
    params: query
  })
}


// 查询章节详细
export function getZhang(id) {
  return request({
    url: '/training/chapter/' + id,
    method: 'get'
  })
}
// 查询题目列表
export function listTimu(query) {
  return request({
    url: '/training/question/list',
    method: 'get',
    params: query
  })
}


// 查询题目详细
export function getTimu(id) {
  return request({
    url: '/training/question/' + id,
    method: 'get'
  })
}